\input ../../default-cn-cfg.mkvi
% \input lib_subfigure.mkvi
\setuplabeltext
[figure={{图(},{)}}]
\setupcaption
[figure]
[
number=yes,
location=bottom,
prefix=yes,
prefixsegments=chapter,
prefixconnector=..,
%numberstarter={(},
%  numberstopper={)},
distance=1mm,
numberconversion=n,
style=\rm\tfwuhao,
headstyle=\rm\tfwuhao,
align=middle,
]


\starttext

%  一组图 1
\chapter[title={一组图 1}]
\startfloatcombination [nx=2,ny=2]

  \startplacefloat[figure][title=Left]   \externalfigure
  \stopplacefloat
  
  \startplacefloat[figure][title=Left]   \externalfigure
  \stopplacefloat
  
  \startplacefloat[figure] [title=Middle] \externalfigure
  \stopplacefloat
  
  \startplacefloat[figure] [title=Right]  \externalfigure
  \stopplacefloat
  
\stopfloatcombination

%  一组图 2
\chapter[title={一组图 2}]
%\setupcombination[location=middle,align=middle] %% 不会产生明显可见的效果，是内部使用的参数
\startfloatcombination [nx=2,ny=2]
  \startplacefloat[figure][title=Left,reference=fig:left1]   \externalfigure
  \stopplacefigure
  \startplacefloat[figure][title=Left]   \externalfigure
  \stopplacefigure
  \startplacefloat[figure] [title=Middle] \externalfigure
  \stopplacefigure
  \startplacefloat[figure] [title=Right,reference=fig:right1]  \externalfigure
  \stopplacefigure
\stopfloatcombination

f sdf sdfdsfdsf sdfsdfdsf sdfds fd sfds f dsf f sd fds
请看 \in{图片}[fig:left1] and \in{图片}[fig:right2].\par

%  一组图3
\startplacefloat[figure][location=middle,title=组图题注]
  \startfloatcombination [nx=2,ny=2]
    \startplacefloat[figure][title=Left,reference=fig:left2]   \externalfigure
    \stopplacefigure
    \startplacefloat[figure][title=Left]   \externalfigure
    \stopplacefigure
    \startplacefloat[figure] [title=Middle] \externalfigure
    \stopplacefigure
    \startplacefloat[figure] [title=Right,reference=fig:right2]  \externalfigure
    \stopplacefigure
  \stopfloatcombination
\stopplacefloat

\stoptext
